#pragma once

#include "afxsock.h"
class CMessage;
class CChatRoomServer;

class CClientSocket :
	public CSocket
{
public:
	CClientSocket(void);
	CClientSocket(CChatRoomServer*);
	virtual ~CClientSocket(void);

public:
	virtual void OnReceive(int nErrorCode);

	int m_nMsgCount;
	CSocketFile* m_pFile;
	CArchive* m_pArchiveIn;
	CArchive* m_pArchiveOut;
	CChatRoomServer* m_pDlg;
	void Initialize();
	void SendMessage(CMessage* pMsg);
	void ReceiveMessage(CMessage* pMsg);
};
